package net.ssta.util.mail;
import javax.mail.PasswordAuthentication;

class MyAuthenticator
       extends javax.mail.Authenticator {
     private String strUser;
     private String strPwd;
     public MyAuthenticator(String user, String password) {
       this.strUser = user;
       this.strPwd = password;
     }

     protected PasswordAuthentication getPasswordAuthentication() {
       return new PasswordAuthentication(strUser, strPwd);
     }
   }

